package com.jiang.demo.user.controller;

import com.jiang.demo.user.service.UserServiceLogin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 登录接口
 */
@CrossOrigin
@RestController
public class LoginController {
        @Autowired UserServiceLogin userServiceLogin;
        @PostMapping("/user/account/token/")
        public Map<String,String> Login(@RequestParam Map<String,String> data) throws Exception {
            return userServiceLogin.login(data);
        }
}
